package polymorphic;

/**
 * @classname:Pelop
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/29 17:54
 * @version: 0.1
 * @since:1.8
 */
public class Pople {
    public static void main(String[] args) {
        Animal snake = new Snake("小蛇");
        Animal fish = new Fish("小鱼");
        Pople.see(snake);
        Pople.see(fish);
    }

    public static void see(Animal animal) {
        animal.move();
    }
}
